using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace msgExchange
{
    public partial class frmProgress : Form
    {
        public frmProgress()
        {
            InitializeComponent();
        }

        public DialogResult  showMe(string title,string content)
        {
            label1.Text = title;
            label2.Text = content;

            return this.ShowDialog();
        }

        public void hideMe()
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.progressBar1.PerformStep();
        }

        private void frmProgress_Load(object sender, EventArgs e)
        {
            this.progressBar1.Maximum = 100;
            this.progressBar1.Minimum = 0;
            this.progressBar1.Step = 2;
            this.progressBar1.Value = 0; 
        }
    }
}